<%@ page language="java" import="java.util.*" pageEncoding="utf-8" contentType="text/html;charset=utf-8"%>
<%@ taglib prefix="c" uri="/WEB-INF/c.tld" %>
<%@ taglib prefix="fmt" uri="/WEB-INF/fmt.tld" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>Shop 管理中心 - 修改密码</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link href="<c:url value="/Admin/styles/general.css" />" rel="stylesheet" type="text/css" />
	<link href="<c:url value="/Admin/styles/main.css" />" rel="stylesheet" type="text/css" />
	<script type="text/javascript" src="<c:url value="/js/user.js" />"></script>
	<c:choose>
		<c:when test="${empty param.suser}">
			<script language="javascript">
				location.href="<c:url value='/Admin/Admin_List.jsp' />";
			</script>
		</c:when>
		<c:when test="${not empty param.msg}">
			<script type="text/javascript" language="javascript">
				alert("${param.msg}");
			</script>
		</c:when>
	</c:choose>
  </head>
  
  <body>
    <h1>
		<span class="action-span"><a href="<c:url value="/Admin/Admin_Info.jsp?suser=${param.suser}" />">资料显示</a></span>
		<span class="action-span"><a href="<c:url value="/Admin/Admin_Einfo.jsp?suser=${param.suser}" />">资料修改</a>&nbsp;&nbsp;</span>
		<span class="action-span"><a href="<c:url value="/Admin/Admin_Epwd.jsp?suser=${param.suser}" />">密码修改</a>&nbsp;&nbsp;</span>
		<span class="action-span"><a href="<c:url value="/Admin/Admin_List.jsp" />">管理员列表</a>&nbsp;&nbsp;</span>
		<span><a href="Admin_Main.jsp">Shop 管理中心</a>  - 管理员密码修改 </span>
	</h1>
	<div class="main-div1">
		<table width="100%" class="btable">
		    <tr>
		        <td><form name="resetPwdUser" action="<c:url value="/servlet/UserManageServlet" />" method="post" onsubmit="return checkResetAdminPwdForm();">
		            <table cellspacing="0" class="tableList">
		              <tr>
		                <th>新&nbsp;&nbsp;密&nbsp;&nbsp;码:</th>
		                <td><input name="new_password" type="password" onkeyup="checkIntensity(this.value)"/></td>
		              </tr>
		              <tr>
		           		 <th>密码强度:</th>
		           		 <td>
		              		<ul id="pwd_lower" >弱</ul>
		        			<ul id="pwd_middle" >中</ul>
		        			<ul id="pwd_high" >强</ul>
		             	 </td>
		         	  </tr>
		              <tr>
		                <th>确认密码:</th>
		                <td><input name="comfirm_password" type="password" /></td>
		              </tr>
		              <tr>
		                <td></td>
		                <td>
		                  <input name="submit" type="submit" value="确定修改" /> 
		                  <input type="hidden" name="fromPage" value="/Admin/Admin_Epwd.jsp" />
		                  <input type="hidden" name="act" value="admineditpwd" />
		                  <input type="hidden" name="suser" value="${param.suser}" />
		                </td>
		              </tr>
		            </table>
		          </form></td>
		    </tr>
		</table>
	</div>
	<div id="footer">版权所有 &copy;</div>
	 <script language="javascript">
		var old_password_empty = "旧密码不能为空。";
		var new_password_empty = "新密码不能为空。";
		var comfirm_password_empty = "确认密码不能为空。";
		var old_password_shorter = "旧密码不能小于 3 个字符."
		var new_password_shorter = "新密码不能小于 3 个字符."
		var comfirm_password_shorter = "确认密码不能小于 3 个字符."
		var comfirm_password_msg = "两次输入的密码不一致";
  	</script>
  </body>
</html>
